package com.examination.framework.exception;

import com.examination.framework.model.response.ResultCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author 寇淇芮
 * @Date 2019/8/22 22:10
 */
@Getter
@NoArgsConstructor
public class CustomException extends RuntimeException {
    private ResultCode resultCode;

    public CustomException (ResultCode resultCode){
        super("错误代码:"+resultCode.code()+"错误信息:"+resultCode.message());
        this.resultCode = resultCode;
    }
}
